<template>
<div>
    <Choose1 v-show="Choosevalue==0"></Choose1>
    <Choose2 v-show="Choosevalue==1"></Choose2>
    <Choose3 v-show="Choosevalue==2"></Choose3>
</div>
</template>

<script>
import Choose1 from './Choose1/Choose1.vue'
import Choose2 from './Choose2/Choose2.vue'
import Choose3 from './Choose3/Choose3.vue'
export default {
    name:'PxTT3Choose',
    components:{Choose1,Choose2,Choose3},
    data(){
        return{
            Choosevalue:0,
        }
    },
    mounted(){
        this.$bus.$on('Choosevalue',(value)=>{
            this.Choosevalue=value
        })
    },
    beforeDestroy(){
        this.$bus.$off('Choosevalue')
    }
}
</script>

<style>

</style>